﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace RMS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Persistence.DataManager Datamanager = Persistence.DataManager.Instance;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainWindow form = new MainWindow();

            View.Login loginView = new View.Login();
            Controller.LoginController lc = new Controller.LoginController(form, loginView);
            loginView.Controller = lc;

            //View.ResearchProjectView loginView = new View.ResearchProjectView();
            //Controller.ResearchProjectController c = new Controller.ResearchProjectController(loginView);
            //loginView.Controller = c;
            //c.InitListOfProjects();
            //c.View.PopulateProjectList(c.Model);
            
            form.Panel.Size = new System.Drawing.Size(loginView.Size.Width, loginView.Size.Height);
            form.Size = new System.Drawing.Size(form.Panel.Size.Width + 46, form.Panel.Size.Height + 86);
            form.Panel.Controls.Add(loginView);

            Application.Run(form);            
        }
    }
}
